/**
 * Created by Administrator on 2017/2/8 0008.
 */
import React from 'react'
import increaseAction from '../action/index'
import decreaseAction from '../action/index'
export function increase(state={count:0},action) {
    let count=state.count
    switch (action.type){
        case "increase":
            return {count:count+1}
        case"decrease":
            return{count:count-1}
        default:
            return state
    }

}